import request from '@/utils/request'
/* 查询  工程、设计报表
* @query :{countYear: '', countMonth: ''}
* */
export function gatherChkprocessReport(query) {
  return request({
    url: '/trd/chkprocess/gatherChkprocessReport',
    method: 'get',
    timeout: 0,
    params: query
  })
}

/* 查询  总报表
* @query :{countYear: '', countMonth: ''}
* */
export function summaryChkprocessReport(query) {
  return request({
    url: '/trd/chkprocess/summaryChkprocessReport',
    method: 'get',
    timeout: 0,
    params: query
  })
}

/* 工程协同 项目抽球报表-下载
* @query :{beginDate : '', endDate: ''}
* */
export function chkProcessExportReport(query) {
  return request({
    url: '/trd/chkprocess/exportReport',
    timeout: 600000,
    method: 'get',
    params: query,
    responseType: 'blob'
  }, {
    source: true
  })
}

/* 工程协同 铺排检查项导出
* @query :{beginDate : '', endDate: ''}
* */
export function exportNeed(query) {
  return request({
    url: '/cq/needchkitem/exportNeed',
    timeout: 600000,
    method: 'post',
    params: query,
    responseType: 'blob'
  }, {
    source: true
  })
}
